echo off

set currDir=%~dp0
set version=2.6.0.0.2
set recipeName=manager
set packetName=gardenManager.war
set uploadURL="http://172.16.217.194:8080//gardenManager/recipe/uploadRecipe"


set myDate=%date:~0,4%%date:~5,2%%date:~8,2%
set myH=%Time:~0,2%
::取系统日期及时间，同时将时间转换为8位(8:16:00-->08:16:00).
if   /i   %myH%   LSS   10   (set myH=0%Time:~1,1%)
set myMS=%Time:~3,2%%Time:~6,2%
set myTime=%myDate%%myH%%myMS%
set version=%version%-%myTime%

trap echo failed ERR

ls t

dir 888

ping 127.0.0.1 -n 1

ping 127.0.0.1 -n 1

ping 127.0.0.1 -n 1

ping 127.0.0.1 -n 1

cd %currDir%
echo %version%
echo %currDir%

echo "This is an error message." 1>&2
echo "This is not an error message."